<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body,html{
            height: 100%;
        }

        #container{
            border-color: rgb(239, 137, 12);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .header_foonter{
            height: 150px;
            background-color:rgb(72, 177, 81);
        }

        #main{
            height: 400px;
            display: flex;
            flex-direction: row;
        }

        .left_right{
            flex-basis: 200px;
            background-color: rgb(104, 147, 109);
        }

        #center{
            flex: auto;
        }

    </style>
</head>
<body>
    <h1>圣杯布局</h1>
    <div id="container">
        <div id="header" class="header_foonter"></div>
        <div id="main">
            <div id="left" class="left_right"></div>
            <div id="center"></div>
            <div id="right" class="left_right"></div>
        </div>
        <div id="footer" class="header_foonter"></div>
    </div>
</body>
</html>